import { logCreateSchema } from "~/validators/log";
export default defineEventHandler(async (event) => {
  const result = await runValidate(logCreateSchema, event);
  const newLog = await LogSchema.create(result.data);
  return newLog;
});
